

using ProductManagement.Domain.Shared;
using Shared.Domain;
using System.ComponentModel.DataAnnotations;

namespace ProductManagement.Domain
{
 
    public  class Product : LongEntityFullAudited
    {             
        public long BusinessId { get; private set; }
        public long ChainStoreId { get; private set; }
        public long CategoryId { get; private set; }
        public long BrandId { get; private set; }

        [MaxLength(100)]
        public string Title { get; private set; }
        public decimal MarketPrice { get; private set; }
        public decimal OnLinePrice { get; private set; }
        public bool AllowDistribution { get; private set; }=false;
        public decimal DistributionMoney { get; private set; }
        public bool IsTakeOut { get; private set; }=false;
        public ProductStatusEnum Status { get; private set; }
        public int Sort { get; private set; }
        public int StoreCount { get; private set; }
        public int SellCount { get; private set; }
        public string Detail { get; private set; }

        [MaxLength(20)]
        public string Parameter1 { get; private set; }

        [MaxLength(20)]
        public string Parameter2 { get; private set; }

        [MaxLength(20)]
        public string Parameter3 { get; private set; }
        [MaxLength(20)]
        public string Parameter4 { get; private set; }
        [MaxLength(20)]
        public string Parameter5 { get; private set; }
        [MaxLength(20)]
        public string Parameter6 { get; private set; }
        [MaxLength(20)]
        public string Parameter7 { get; private set; }
        [MaxLength(20)]
        public string Parameter8 { get; private set; }
        [MaxLength(20)]
        public string Parameter9 { get; private set; }
        [MaxLength(20)]
        public string Parameter10 { get; private set; }
    }
}
